package com.yc.pay.iclient;

import com.yc.pay.api.resp.RespVo;
import com.yc.pay.api.resp.TradeQueryRespData;
import com.yc.pay.iclient.impl.AlipayClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ALIPAY-FRONT", fallback = AlipayClientImpl.class)
public interface IAlipayClient {


    @RequestMapping("/alipay/query")
    public RespVo<TradeQueryRespData> alipayTradeQuery(@RequestParam("outTradeNo") String outTradeNo);


    @RequestMapping("/alipay/close")
    public RespVo<TradeQueryRespData> alipayTradeClose(@RequestParam("outTradeNo") String outTradeNo);

}
